<?php
/**
 * Created by PhpStorm.
 * User: lantranduc
 * Date: 5/22/14
 * Time: 1:37 PM
 */
App::uses('AppModel', 'Model');
class link extends AppModel{
   // public $name = 'Link';
    public $displayName = 'name';
    //public $useTable = 'link';
    public $primaryKey = 'id';

    var $validate = array(
        'link' => array(
            'rule' => 'url',
            'message'=>'url không hợp lệ.'
        )
    );
}